{
  "cells": [
    {
      "cell_type": "code",
      "source": [
        "param = 4"
      ],
      "outputs": [],
      "execution_count": 1,
      "metadata": {
        "collapsed": false,
        "outputHidden": false,
        "inputHidden": false,
        "tags": [
          "parameters"
        ]
      }
    },
    {
      "cell_type": "code",
      "source": [
        "import pandas as pd"
      ],
      "outputs": [],
      "execution_count": 2,
      "metadata": {
        "collapsed": false,
        "outputHidden": false,
        "inputHidden": false
      }
    },
    {
      "cell_type": "code",
      "source": [
        "df = pd.DataFrame({'A': [1, 2], 'B': [3 + param, 4]},\n",
        "                  index=pd.Index(['x0', 'x1'], name='x'))\n",
        "df"
      ],
      "outputs": [
        {
          "output_type": "execute_result",
          "execution_count": 3,
          "data": {
            "text/plain": [
              "    A  B\n",
              "x       \n",
              "x0  1  7\n",
              "x1  2  4"
            ],
            "text/html": [
              "<div>\n",
              "<style scoped>\n",
              "    .dataframe tbody tr th:only-of-type {\n",
              "        vertical-align: middle;\n",
              "    }\n",
              "\n",
              "    .dataframe tbody tr th {\n",
              "        vertical-align: top;\n",
              "    }\n",
              "\n",
              "    .dataframe thead th {\n",
              "        text-align: right;\n",
              "    }\n",
              "</style>\n",
              "<table border=\"1\" class=\"dataframe\">\n",
              "  <thead>\n",
              "    <tr style=\"text-align: right;\">\n",
              "      <th></th>\n",
              "      <th>A</th>\n",
              "      <th>B</th>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>x</th>\n",
              "      <th></th>\n",
              "      <th></th>\n",
              "    </tr>\n",
              "  </thead>\n",
              "  <tbody>\n",
              "    <tr>\n",
              "      <th>x0</th>\n",
              "      <td>1</td>\n",
              "      <td>7</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>x1</th>\n",
              "      <td>2</td>\n",
              "      <td>4</td>\n",
              "    </tr>\n",
              "  </tbody>\n",
              "</table>\n",
              "</div>"
            ]
          },
          "metadata": {}
        }
      ],
      "execution_count": 3,
      "metadata": {
        "collapsed": false,
        "outputHidden": false,
        "inputHidden": false
      }
    },
    {
      "cell_type": "code",
      "source": [
        "%matplotlib inline\n",
        "df.plot(kind='bar')"
      ],
      "outputs": [
        {
          "output_type": "execute_result",
          "execution_count": 5,
          "data": {
            "text/plain": [
              "<matplotlib.axes._subplots.AxesSubplot at 0x1634278f240>"
            ]
          },
          "metadata": {}
        },
        {
          "output_type": "display_data",
          "data": {
            "text/plain": [
              "<Figure size 432x288 with 1 Axes>"
            ],
            "image/png": [
              "iVBORw0KGgoAAAANSUhEUgAAAW4AAAEMCAYAAADknlzeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDIuMi4zLCBodHRwOi8vbWF0cGxvdGxpYi5vcmcvIxREBQAADWhJREFUeJzt3V+MXHd5xvHn6XqjcYwb4s2AEMuyW6lJFBHhoCHI+VOBaSpTKpCSXmwksIqQ9gJBQEJCzl0QVKW5qEBKVWmFKRHgtYqLo4oAJpJxkEMIWRsXObEjQXDkaVJibwXGJUuS5e3FjFOznvUce8/ZM+/u9yNZ3p05Oue9OPnm+DdnZhwRAgDk8Sd1DwAAuDSEGwCSIdwAkAzhBoBkCDcAJEO4ASAZwg0AyRBuAEiGcANAMuuq2Ok111wT4+PjVewaAFalQ4cOnY6IZpFtKwn3+Pi4Zmdnq9g1AKxKtp8rui1LJQCQDOEGgGQINwAkU8kaNwDU4ZVXXlG73db8/Hzdoyyp0WhodHRUw8PDl70Pwg1g1Wi329q4caPGx8dlu+5xLhARmpubU7vd1sTExGXvp+9Sie3rbB85788Z25+67CMCQEXm5+c1MjIykNGWJNsaGRlZ9r8I+l5xR8QzkjZ3Dzok6b8k7V3WUQGgIoMa7XPKmO9SX5x8r6RfRETh+w0BAOW61DXuSUkzvZ6wPSVpSpLGxsaWORZec99VdU9QzH2/qXsC4ALjOx4udX8nvvD+Qtvt3btXd955p44dO6brr7++1BmkS7jitn2FpA9I+mav5yNiOiJaEdFqNgu9axMAVqW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/ZVkrap8+7UUOee+X0R8etaBwOWYPuOiHik7jnWEq64B4jt7ZIOS3q3pCslbZD0HkmHus8Bg2hn3QOsNdxVMkC6HxPwrsVX17avlvRERFxbz2RY62wv9aY7S9oaERtWcp61jqWSwWL1+BwYSX9Q78+MAVbK7ZI+JOnsosetzieIYgUR7sHy95IO2/6+/v8TGcck3SHpc7VNBUg/lvS7iHh08RN8oNzKY6lkwNjeJOljkl5S52qmrc7HDbw9Ig7UOBog2zdExNOLHns35+bKItwDyPZRSV+TdL+k9ZL+UVIrIrbUOhjWvEXnZqP7N+fmCuOuksH0LnU+SvdHkn6izi2Bt9Y6EdBx/rn5pDg3a0G4B9Mr6iyVrFfnquaXEfGHekcCJHFuDgTCPZieVOc/jndKuk2dL2jeU+9IgCTOzYHAGvcAst2KiNlFj304Ir5W10yAxLk5KAg3ACTDUgkAJEO4ASAZwg0AyRBuAEiGcGPVs/1O2z+z3bC9wfZTtt9W91zA5eKuEqwJtj+vzhtG1ktqR8Q/1DwScNkIN9YE21eo8+aReUm3RMRCzSMBl42lEqwVmyS9TtJGda68gbS44saa0P0Gl92SJiS9KSI+XvNIwGXjixSw6nW/r/PViNhle0jSj2xvjYj9dc8GXA6uuAEgGda4ASAZwg0AyRBuAEiGcANAMoQbAJIh3ACQDOEGgGQINwAk83+p4wopHJUYHQAAAABJRU5ErkJggg==\n"
            ]
          },
          "metadata": {}
        }
      ],
      "execution_count": 5,
      "metadata": {
        "collapsed": false,
        "outputHidden": false,
        "inputHidden": false
      }
    }
  ],
  "metadata": {
    "kernel_info": {
      "name": "python3"
    },
    "language_info": {
      "name": "python",
      "version": "3.6.6",
      "mimetype": "text/x-python",
      "codemirror_mode": {
        "name": "ipython",
        "version": 3
      },
      "pygments_lexer": "ipython3",
      "nbconvert_exporter": "python",
      "file_extension": ".py"
    },
    "kernelspec": {
      "name": "python3",
      "language": "python",
      "display_name": "Python 3"
    },
    "nteract": {
      "version": "0.11.6"
    }
  },
  "nbformat": 4,
  "nbformat_minor": 2
}